This is an R Markdown Notebook. When you execute code within the notebook, the results appear beneath the code.

Try executing this chunk by clicking the Run button within the chunk or by placing your cursor inside it and pressing Ctrl+Shift+Enter.

Shiny applications not supported in static R Markdown documents
---
title: "covid-19"
output:
  flexdashboard::flex_dashboard:
    orientation: rows
    social: menu
    source_code: embed
---

This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code. 

Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Ctrl+Shift+Enter*. 

```{r}
#install.packages("shinydashboard")
#install.packages("wbstats")
#install.packages("plotly")
#install.packages("htmlwidgets")
library(shiny)
library(shinydashboard)
library(DT)
library(fs)
library(wbstats)
library(leaflet)
library(plotly)
library(tidyverse)


```
```{r}
ui <- dashboardPage(
  dashboardHeader(title = "Covid-19"),
  dashboardSidebar(),
  dashboardBody(
    box(plotOutput("correlation_plot"),width = 8),
    box(selectInput("features","Features:",c("Sepal.Width","Petal.Length","Petal.Width")),width = 4)),
  navbarPage(
    title=div()
  )
)

server <- function(input,output){
  output$correlation_plot <- renderPlot({
    plot(iris$Sepal.Length,iris[[input$features]],
         xlab = "Sepal length",ylab = "Feature")
  })
}

shinyApp(ui,server)
```
```{r}

```